<layout name="../../Admin/View/master"/>

<table class="table table-hover" style="margin-top: 30px">
    <thead>
    <tr>
        <th>订单编号</th>
        <th>收件人</th>
        <th>下单时间</th>
        <th>收件人地址</th>
        <th>状态</th>
        <th>操作</th>

    </tr>
    </thead>
    <tbody>
    <foreach name="orders" item="vo">
        <tr>
            <td>{$vo['uoid']}</td>
            <td>{$vo['postname']}</td>
            <td>{$vo['postaddr']}</td>
            <td>{:date('Y年m月d日 H:i:s',$vo['ordertime'])}</td>
            <td>
                <if condition="$vo['orderstatus'] eq 0"><span style="color: red;font-weight: 700">未发货</span>
                    <else /> 已发货
                </if>
            </td>
            <td>
                <div class="btn-group">
                    <a href="{:U('orderinfo',['uoid'=>$vo['uoid'],'uid'=>$vo['uid']])}" class="btn btn-info">查看详情</a>
                </div>
            </td>
        </tr>
    </foreach>
    </tbody>
</table>
<script>
    function del(nid){
        util.confirm('确定删除吗?',function(){
         location.href="__ROOT__/index.php/admin/nature/del/nid/"+nid;
        });
    }
</script>